


<!DOCTYPE html>
<html id="htmlId">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
  <title>Coverage Report > Book</title>
  <style type="text/css">
    @import "../../css/coverage.css";
    @import "../../css/idea.min.css";
  </style>
  <script type="text/javascript" src="../../js/highlight.min.js"></script>
  <script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">com.llsly.library.model</a>
</div>

<h1>Coverage Summary for Class: Book (com.llsly.library.model)</h1>

<table class="coverageStats">

<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">Book</td>
<td class="coverageStat">
  <span class="percent">
    81.8%
  </span>
  <span class="absValue">
    (9/11)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    86.7%
  </span>
  <span class="absValue">
    (13/15)
  </span>
</td>
</tr>
  <tr>
    <td class="name">Book$HibernateProxy$JzUXYk2g</td>
  </tr>
<tr>
  <td class="name"><strong>Total</strong></td>
<td class="coverageStat">
  <span class="percent">
    81.8%
  </span>
  <span class="absValue">
    (9/11)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    86.7%
  </span>
  <span class="absValue">
    (13/15)
  </span>
</td>
</tr>
</table>

<br/>
<br/>


<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package com.llsly.library.model;
&nbsp;
&nbsp;import javax.persistence.Entity;
&nbsp;import javax.persistence.GeneratedValue;
&nbsp;import javax.persistence.GenerationType;
&nbsp;import javax.persistence.Id;
&nbsp;@Entity
&nbsp;public class Book {
&nbsp;    @Id
&nbsp;    @GeneratedValue(strategy = GenerationType.IDENTITY)
&nbsp;    private Long id; // 书号
&nbsp;    private String title; // 书名
&nbsp;    private String author; // 作者
&nbsp;    private String isbn; // 国际标准书号
&nbsp;
&nbsp;    //无参构造函数
<b class="fc">&nbsp;    public Book() {</b>
&nbsp;    }
&nbsp;    // 构造函数
<b class="fc">&nbsp;    public Book(Long id, String title, String author, String isbn) {</b>
<b class="fc">&nbsp;        this.id = id;</b>
<b class="fc">&nbsp;        this.title = title;</b>
<b class="fc">&nbsp;        this.author = author;</b>
<b class="fc">&nbsp;        this.isbn = isbn;</b>
&nbsp;    }
&nbsp;
&nbsp;    // Getter和Setter方法
&nbsp;    public Long getId() {
<b class="fc">&nbsp;        return id;</b>
&nbsp;    }
&nbsp;
&nbsp;    public void setId(Long id) {
<b class="nc">&nbsp;        this.id = id;</b>
&nbsp;    }
&nbsp;
&nbsp;    public String getTitle() {
<b class="fc">&nbsp;        return title;</b>
&nbsp;    }
&nbsp;
&nbsp;    public void setTitle(String title) {
<b class="fc">&nbsp;        this.title = title;</b>
&nbsp;    }
&nbsp;
&nbsp;    public String getAuthor() {
<b class="fc">&nbsp;        return author;</b>
&nbsp;    }
&nbsp;
&nbsp;    public void setAuthor(String author) {
<b class="fc">&nbsp;        this.author = author;</b>
&nbsp;    }
&nbsp;
&nbsp;    public String getIsbn() {
<b class="fc">&nbsp;        return isbn;</b>
&nbsp;    }
&nbsp;
&nbsp;    public void setIsbn(String isbn) {
<b class="fc">&nbsp;        this.isbn = isbn;</b>
&nbsp;    }
&nbsp;
&nbsp;    @Override
&nbsp;    public String toString() {
<b class="nc">&nbsp;        return &quot;Book{&quot; +</b>
&nbsp;                &quot;id=&quot; + id +
&nbsp;                &quot;, title=&#39;&quot; + title + &#39;\&#39;&#39; +
&nbsp;                &quot;, author=&#39;&quot; + author + &#39;\&#39;&#39; +
&nbsp;                &quot;, isbn=&#39;&quot; + isbn + &#39;\&#39;&#39; +
&nbsp;                &#39;}&#39;;
&nbsp;    }
&nbsp;}
</code>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
      hljs.highlightAll()
      hljs.initLineNumbersOnLoad();
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2025-05-04 13:53</div>
</div>
</body>
</html>
